SERVER=xenon.cs.luc.edu:~/public_html/cs271/lectures

all: images slides article

slides:
	pdflatex lec1-oop-intro.beamer.tex
	pdflatex lec1-oop-intro.beamer.tex

article:
	pdflatex lec1-oop-intro.article.tex
	pdflatex lec1-oop-intro.article.tex

images:
	dot -Tpdf diagram1.dot > diagram1.pdf
	dot -Tpdf equality.dot > equality.pdf
	dot -Tpdf identity.dot > identity.pdf
	dot -Tpdf object.dot > object.pdf
	dot -Tpdf passbyreference.dot > passbyreference.pdf
	dot -Tpdf interfaces.dot > interfaces.pdf

publish: all
	scp lec1-oop-intro.beamer.pdf ${SERVER}/lec1-oop-intro.beamer.pdf
	scp lec1-oop-intro.article.pdf ${SERVER}/lec1-oop-intro.article.pdf

clean:
	-rm *.aux *.log *.nav *.out *.pdf *.snm *.toc *.vrb *.ps *.dvi
	-rm *~
